<?php
require_once __DIR__ . '/dumpHelper.php';
?>
<div id="<?php echo $data->get('title'); ?>">
    <h2><?php echo $data->get('title'); ?></h2>
    <?php if (count($data->get('settings', '/', array())) > 0): ?>
        <?php foreach ($data->get('settings') as $group => $settings): ?>
            <h3><?php echo $group; ?></h3>
            <table>
                <tr>
                    <th>Key</th>
                    <th>Value</th>
                </tr>
            <?php foreach ($settings as $key => $value): ?>
                <tr>
                    <td><?php echo htmlspecialchars($key); ?></td>
                    <td><?php echo dump($value); ?></td>
                </tr>
            <?php endforeach; ?>
            </table>
        <?php endforeach; ?>
    <?php else: ?>
    No settings
    <?php endif; ?>
</div>